package xyz.chenyongpeng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import xyz.chenyongpeng.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 优惠券分配表
 * </p>
 *
 * @author chenyongpeng
 * @since 2018-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="ZsCouponCode对象", description="优惠券分配表")
public class ZsCouponCode extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "code_id", type = IdType.AUTO)
    private Integer codeId;

    @ApiModelProperty(value = "优惠券ID")
    private Integer couponId;

    @ApiModelProperty(value = "券编号")
    private String code;

    @ApiModelProperty(value = "用户账户ID")
    private Integer uId;

    @ApiModelProperty(value = "是否使用过1: 已使用0:未使用")
    private Integer isUsed;

    @ApiModelProperty(value = "添加时间")
    private Integer addTime;

    @ApiModelProperty(value = "优惠券的开始时间")
    private Integer startTime;

    @ApiModelProperty(value = "结束时间")
    private Integer endTime;

    @ApiModelProperty(value = "是否删除 0：未删除 1：删除")
    private Integer isDelete;


}
